package cn.appcentre.controller;

/*开始写处理器
* @Controller  注解被扫描到
* @RequestMapping  请求路径
* */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("user")
public class UserController {

    @RequestMapping("/test")
    public String testUser(){
        /*转到user.jsp*/
        return "user";
    }
    @RequestMapping("/demo")
    public String demoUser(){
        /*转到user.jsp*/
        return "demo";
    }
}
